<?php

declare(strict_types=1);

namespace App\CustHub\Helpers;

use App\Setting\Service\SettingConfigService;

class WeWorkHelper
{
    public static function getSuiteIdAndSuiteSecret()
    {
        $authAppId = container()->get(SettingConfigService::class)->getConfigByKey('auth_app_id')['value'];
        $info = container()->get(McAppMapper::class)->findById($authAppId);

        return [
            $info['suite_id'] ?? '',
            $info['suite_secret'] ?? ''
        ];
    }
}